package vn.conghuy.talkwithme.responsor.action;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;

public class SmsAction extends Action {
	
	/**
	 * @uml.property  name="address"
	 */
	String address;
	/**
	 * @uml.property  name="content"
	 */
	String content;
	
	public SmsAction(Context context, String address, String content) {
		super(context);
		this.address = address;
		this.content = content;
	}
	
	@Override
	public void doAction() {
		 Intent intent = new Intent( Intent.ACTION_VIEW, Uri.parse("sms:" + address)); 
		 intent.putExtra("sms_body", content); 
		 context.startActivity(intent);
	}
}
